<div class="layui-row" list_url="<{:url('goodsrec/lists')}>">
    <span class="fl">
        <a class="layui-btn btn-default" onclick="layui.layer.open({title:'添加',type:2,area: ['800px', '400px'],content:'<{:url('goodscatattr/add','id='.$id)}>'});">添加</a>
        <a class="layui-btn btn-default" onclick="window.location.href=window.location.href;"><i class="layui-icon">ဂ</i></a>
    </span>
</div>
<div>
  <table class="layui-table">
    <thead>
      <tr>
          <th width="80">ID</th>
          <th>属性标题</th>
          <th>备选值</th>
          <th>排序</th>
          <th>开关</th>
          <th>时间</th>
          <th>操作</th>
      </tr>
    </thead>
    <tbody list_body>
    <{volist name='list' id='v'}>
    <tr>
        <td><{$v['id']}></td>
        <td><{$v['title']}></td>
        <td><{$v['selectvalue']}></td>
        <td><{:com_sort('goods_cat_attr',$v['id'],$v['sort'])}></td>
        <td><{:c('type.status',$v['status'])}></td>
        <td><{:com_formate_time( $v['create_time'] )}></td>
        <td><{:com_btn_edit(url("goodscatattr/edit","id={$v['id']}"),"800px","400px")}></td>
    </tr>
    <{/volist}>
    </tbody>
  </table>
</div>
